<template>
	<view class="sale-list">
		<view class="sale-item">
			<view class="sale-item-head">
				<view class="sale-image">
					<image class="image" src="http://img.zmssp.cn/165691948916933524462.jpg"></image>
				</view>
				<view class="sale-info">
					<view class="sale-title">【买三包送1包】新疆纯素面包 招牌面包，好吃又实惠</view>
					<view class="sale-detail">
						<view class="sale-detail-price">
							<text>￥114.00</text>
						</view>
						<view class="detail-first">
							<view class="total-sales detail-item">
								<text>总销量 322</text>
							</view>
							<view class="stock detail-item">
								<text>库存 444</text>
							</view>	
						</view>
						<view class="detail-last ">
							<view class="total-return-number detail-item">
								<text>总退件数量 0</text>
							</view>
							<view class="add-time detail-item">
								<text>添加 2019/05/01</text>
							</view>
						</view>
					</view>
					
				</view>
				<view class="arrow-right">
					<u-icon name="arrow-right" color="#eee"></u-icon>
				</view>
			</view>
			<view class="sale-operator">
				<view class="sale-operator-item">
					<text>{{btn_one}}</text>
				</view>
				<view class="sale-operator-item">
					<text>分享</text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default{
		props:{
			btn_one:{
				type:String,
			}
		}
	}
</script>

<style lang="scss" scoped>
	$border-color:#eee;
	.sale-list {
		padding: 20rpx;
		.sale-item-head{
			display: flex;
		}
		.sale-item {
			margin-bottom: 20rpx;
			.sale-info{
				width: 73%;
				margin-left: 20rpx;
				.sale-title{
					overflow: hidden;
					white-space: nowrap;
					text-overflow: ellipsis;
				}
				
				.sale-detail{
					font-size: 24rpx;
					.sale-detail-price{
						color: #c73329;
					}
					.detail-first,.detail-last{
						display: flex;
						margin-top: 10rpx;
						color: #c7c7c7;
					}
					.detail-item{
						width: 60%;
					}
				}
			}
			.arrow-right{
				display: flex;
				flex-direction: column;
				justify-content: center;
			}
		
	
			.sale-image {
				width: 160rpx;
				height: 160rpx;
	
				.image {
					width: 160rpx;
					height: 160rpx;
				}
			}
			padding-bottom: 30rpx;
			&:not(:last-child){
				border-bottom: 1px solid $border-color;
			}
			
			.sale-operator{
				margin-top: 30rpx;
				border: 1px solid $border-color;
				height: 60rpx;
				display: flex;
				align-items: center;
				font-size: 28rpx;
				.sale-operator-item{
					flex: 1;
					text-align: center;
					&:first-child{
						border-right: 1px solid $border-color;
					}
				}
			}
		}
	}
</style>